package Print;



public class Test {

	public static void main(String[] args) {
		

		

		InkBox inkbox = null;
		PaPer paper = null;
		Printer printer = new Printer();
		
		

		inkbox = new GrayInkBox();
		paper = new A4Paper();
		printer.setInkBox(inkbox);
		printer.setPaper(paper);
		printer.print();
		
		

		inkbox = new GrayInkBox();
		paper = new B5Paper();
		printer.setInkBox(inkbox);
		printer.setPaper(paper);
		printer.print();
		
		

		inkbox = new ColorInkBox();
		paper = new B5Paper();
		printer.setInkBox(inkbox);
		printer.setPaper(paper);
		printer.print();
		
		

		inkbox = new ColorInkBox();
		paper = new A4Paper();
		printer.setInkBox(inkbox);
		printer.setPaper(paper);
		printer.print();
	}

}